home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 50 / 050.d81 / bbs lister (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  8KB  |  270 lines

  1. 5 gosub60100:clr
  2. 10 poke 53280,0:poke 53281,0:print""
  3. 20 rem bbs lister
  4. 30 rem by ted lewis
  5. 40 rem ----main menu----
  6. 50 clr:dim file$(360,1):print chr$(14)chr$(8)
  7. 60 t1$="[158][192][192][192] ":t2$=" [158][192][192][192]"
  8. 70 print"[147][194][194][211] [204]ister"spc(21)"[212]ed [204]ewis"
  9. 80 print"[158][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]"
  10. 90 printtab(15)"[205]ain [205]enu"
  11. 100 printtab(6)"1 - [195]reate a new file"
  12. 110 printtab(6)"2 - [215]ork on an old file"
  13. 120 printtab(6)"3 - [209]uit"
  14. 130 printtab(10)"[195]hoice?  "
  15. 140 get ge$
  16. 150 if ge$="1" then1080
  17. 160 if ge$="2" then210
  18. 170 if ge$="3" then60000
  19. 180 gosub1960
  20. 190 goto140
  21. 200 rem ----old file menu----
  22. 210 print"[147]":printtab(10)t1$"[207]ld [198]ile [205]enu"t2$
  23. 220 printtab(4)"1 - [197]dit [198]ile"
  24. 230 printtab(4)"2 - [208]rint [198]ile"
  25. 240 printtab(4)"3 - [205]ain [205]enu"
  26. 250 printtab(8)"[195]hoice?"
  27. 260 get ge$
  28. 270 if ge$="1" then330
  29. 280 if ge$="2" then1580
  30. 290 if ge$="3" then50
  31. 300 gosub1960
  32. 310 goto260
  33. 320 rem ----edit old file----
  34. 330 print"[147]":printtab(12)t1$"[197]dit [198]ile"t2$
  35. 340 printtab(4)"[197]nter file name:":so=16:gosub2290:name$=wd$
  36. 350 open 1,8,4,"0:"+name$+",s,r"
  37. 360 dct=1:x=1:gosub2020
  38. 370 if err=1 thenclose1:err=0:goto330
  39. 380 printtab(4)"[215]orking..."
  40. 390 input#1,in$
  41. 400 file$(x,0)=in$
  42. 410 if st and 64 thenclose1:close15:l=1:ct=1:goto450
  43. 420 x=x+1
  44. 430 goto390
  45. 440 rem ----screen print routine----
  46. 450 print"[147]":printtab(12)t1$"[197]dit [198]ile "t2$
  47. 460 printtab(8)"[204]isting "l"out of "x/9""
  48. 470 if cha thenprint"[147]":printtab(11)t1$"[195]hange [196]ata"t2$""
  49. 480 if file$(ct,1)="d" thenprint "[158][196][197][204][197][212][197][196][146]"
  50. 490 printtab(4)q1" - "file$(ct+q1,0)
  51. 500 if int((ct+q1)/9)=(ct+q1)/9 then530
  52. 510 q1=q1+1
  53. 520 goto490
  54. 530 printtab(4)"[195]hange? (# of entry/a[146]ll";
  55. 540 ifchathenprint"/n[146]o)":goto580
  56. 550 print")":printtab(12)"(d[146]elete/u[146]ndelete)"
  57. 560 printtab(12)"(+[146] next/-[146] previous)
  58. 570 [153][163]12)"left$it \wait if finished."
  59. 580 [161] ge$
  60. 590 [139] ge$[178]"n" [175] cha [167]q1[178]0:cha[178]0:[137]1420
  61. 600 [139] ge$[178]"+"[175]cha[178]0[167]q1[178]0:[137]700
  62. 610 [139] ge$[178]"-"[175] cha[178]0 [167]q1[178]0:[137]720
  63. 620 [139] ge$[178]"d"[175] cha[178]0 [167]edt[178]1:q1[178]0:[137]870
  64. 630 [139] ge$[178]"u" [175] cha[178]0 [167]q1[178]0:[137]890
  65. 640 [139] ge$[178]"restore" [167][160]1:[137]50
  66. 650 [139] ge$[178]"\" [175] cha[178]0 [167]q1[178]0:[137]780
  67. 660 [139] ge$[178]"a" [167]all[178]1:edt[178]1:ca[178]1:[137]1150
  68. 670 [139] ge$[178]""[167]580
  69. 680 [139] [198](ge$)[177]47 [175] [198](ge$)[179]57 [167]740
  70. 690 [137]580
  71. 700 l[178]l[170]1:[139] l[177]x[173]9 [167]l[178]1:ct[178]1:[137]450
  72. 710 ct[178]ct[170]9:[137]450
  73. 720 l[178]l[171]1:[139] l[179]1 [167]l[178]x[173]9:ct[178]x[171]8:[137]450
  74. 730 ct[178]ct[171]9:[137]450
  75. 740 edt[178]1:ca[178]1:[145] ([197](ge$)[170]1)[137]1150,1230,1250,1270,1280,1290,1310,1320,1330
  76. 750 ca[178]0:q1[178]0:[139] cha [167][153]"load":[137]470
  77. 760 [137]450
  78. 770 [143] ----append seq file----
  79. 780 [153]"load":[153][163]11)t1$"atnppend ascile"t2$
  80. 790 [153][163]4)"str$o you want to add any more to this file? (y/n)"
  81. 800 [161] ge$
  82. 810 [139] ge$[178]"n" [167]920
  83. 820 [139] ge$[178]"y" [167]edt[178]1:[137]850
  84. 830 [139] ge$[178]"restore" [167]50
  85. 840 [137]800
  86. 850 app[178]1:x[178]x[170]9:ct[178]x[171]8:[137]1130
  87. 860 [143] ----delete----
  88. 870 [139] ct[178]0 [167]file$(1,1)[178]"d":[137]700
  89. 880 file$(ct,1)[178]"d":[137]700
  90. 890 [139] ct[178]0 [167]file$(1,1)[178]"":[137]700
  91. 900 file$(ct,1)[178]"":[137]700
  92. 910 [143] ----write array to seq file----
  93. 920 [139] edt[178]0 [167]1040
  94. 930 [153]"load":[153][163]7)t1$"(NULL)ewrite str$ata ascile"t2$
  95. 940 [153][163]4)"right$nsert correct disk and press any       key to continue."
  96. 950 [161] ge$:[139] ge$[178]"restore"[167]50
  97. 960 [139] ge$[178]""[167]950
  98. 970 [159] 15,8,15,"s 0:"[170]name$[170]""
  99. 980 [160]15:[159] 1,8,4,"0:"[170]name$[170]",s,w"
  100. 990 [141]2020:[139] err[178]1 [167][160]1:err[178]0:[137]920
  101. 1000 [129] fr[178]1 [164] x
  102. 1010 [139] file$(fr,1)[178]"d" [167]fr[178]fr[170]8:[137]1030
  103. 1020 [152]1,file$(fr,0)
  104. 1030 [130] fr
  105. 1040 [160]1:[160]15:[153][163]4)"str$one. (NULL)ress any key for (NULL)ain (NULL)enu."
  106. 1050 [161] ge$:[139] ge$[178]""[167]1050
  107. 1060 [137]50
  108. 1070 [143] ----create new info file----
  109. 1080 ct[178]1:[153]"load":[153][163]9)t1$"lenreate (NULL)ew ascile"t2$
  110. 1090 [153][163]4)"valnter new file name:":so[178]16:[141]2290:name$[178]wd$
  111. 1100 [159] 1,8,4,"0:"[170]name$[170]",s,w"
  112. 1110 [141]2020
  113. 1120 ct[178]1:[139] err[178]1 [167][160]1:err[178]0:[137]1080
  114. 1130 [153]"load(NULL)umber of entries: ";ent
  115. 1140 [153][163]9)t1$"valnter (NULL)ew str$ata"t2$
  116. 1150 [153][163]4)"valnter peekpeek(NULL) name";
  117. 1160 [139] ca[178]0 [167][153]" (or (NULL)val(NULL)(NULL)(NULL)(NULL)wait):"
  118. 1170 [139] cha [176] ca [167][153]":"
  119. 1180 so[178]28:[141]2290:file$(ct,0)[178]wd$
  120. 1190 [139] all [167]ca[178]0:[137]1230
  121. 1200 [139] ca [167]750
  122. 1210 [139] file$(ct,0)[178]" " [175] app[178]1 [167]app[178]0:ct[178]ct[171]9:x[178]x[171]9:[137]780
  123. 1220 [139] file$(ct,0)[178]" "[167][160]1:[160]15:[137]1480
  124. 1230 [153][163]4)"valnter peekpeek(NULL) (NULL)umber:":so[178]30:[141]2290:file$(ct[170]1,0)[178]wd$
  125. 1240 [139] ca [167]750
  126. 1250 [153][163]4)"valnter (NULL)ser (NULL)ame:":so[178]27:[141]2290:file$(ct[170]2,0)[178]wd$
  127. 1260 [139] ca [167]750
  128. 1270 [153][163]4)"valnter (NULL)assword:":so[178]28:[141]2290:file$(ct[170]3,0)[178]wd$:[139]ca[167]750
  129. 1280 [153][163]4)"valnter (NULL)ser right$str$:":so[178]29:[141]2290:file$(ct[170]4,0)[178]wd$:[139] ca[167]750
  130. 1290 [153][163]4)"valnter peekpeek(NULL) (NULL)ysop (NULL)ame:":so[178]26:[141]2290:file$(ct[170]5,0)[178]wd$
  131. 1300 [139] ca [167]750
  132. 1310 [153][163]4)"valnter peekpeek(NULL) left$ours:":so[178]31:[141]2290:file$(ct[170]6,0)[178]wd$
  133. 1315 [139] ca [167]750
  134. 1320 [153][163]4)"valnter peekpeek(NULL) peekaud:":so[178]31:[141]2290:file$(ct[170]7,0)[178]wd$:[139]ca[167]750
  135. 1330 [153][163]4)"valnter peekpeek(NULL) str$istance:":so[178]29:[141]2290:file$(ct[170]8,0)[178]wd$
  136. 1340 [139] ca [167]750
  137. 1350 [139] all [167]all[178]0:[137]750
  138. 1360 [153] "right$s everything (NULL)(NULL)? [(NULL)/(NULL)]"
  139. 1370 [161] ge$
  140. 1380 [139] ge$[178]"y"[167]1420
  141. 1390 [139] ge$[178]"n"[167]cha[178]1:[137]470
  142. 1400 [139] ge$[178]"restore"[167][160]1:[137]50
  143. 1410 [137]1370
  144. 1420 [139] app[178]1 [167]app[178]0:ent[178]ent[170]1:cha[178]0:[137]780
  145. 1430 [152]1,file$(ct,0)[170][199](13)[170]file$(ct[170]1,0)[170][199](13)[170]file$(ct[170]2,0)
  146. 1440 [152]1,file$(ct[170]3,0)[170][199](13)[170]file$(ct[170]4,0)[170][199](13)[170]file$(ct[170]5,0)
  147. 1450 [152]1,file$(ct[170]6,0)[170][199](13)[170]file$(ct[170]7,0)[170][199](13)[170]file$(ct[170]8,0)
  148. 1460 ent[178]ent[170]1:[137]1130
  149. 1470 [143]----print file menu----
  150. 1480 [153]"load":[153][163]9)t1$"(NULL)rint ascile (NULL)enu"t2$
  151. 1490 [153][163]4)"1 - (NULL)rint ascile"
  152. 1500 [153][163]4)"2 - (NULL)ain (NULL)enu"
  153. 1510 [153][163]8)"lenhoice?"
  154. 1520 [161] ge$
  155. 1530 [139] ge$[178]"1" [167]prt[178]1:[137]1580
  156. 1540 [139] ge$[178]"2" [167]50
  157. 1550 [141]1960
  158. 1560 [137]1520
  159. 1570 [143]----print file----
  160. 1580 [153]"load":[153][163]11)t1$"(NULL)rint ascile"t2$
  161. 1590 [139] prt [167]n1$[178]name$:[137]1610
  162. 1600 [153][163]4)"valnter file name:":so[178]16:[141]2290:n1$[178]wd$
  163. 1610 [159] 1,8,4,"0:"[170]n1$[170]",s,r"
  164. 1620 [141]2020
  165. 1630 [139] err [167]err[178]0:[160]1:[137]1580
  166. 1640 [153][163]4)"valnter header:":so[178]30:[141]2290:head$[178]wd$
  167. 1650 [153][163]4)"atnre you using fanfold or single         sheet paper? (f/s)"
  168. 1660 [161] ge$:[139] ge$[178]"restore"[167][160]1:[137]50
  169. 1670 [139] ge$[178]"f"[167]fan[178]0:[137]1700
  170. 1680 [139] ge$[178]"s"[167]fan[178]1:[137]1700
  171. 1690 [137]1660
  172. 1700 [153][163]4)"(NULL)ine up paper and press any key.":page[178]1
  173. 1710 [161] ge$:[139] ge$[178]""[167]1710
  174. 1740 [159] 4,4,7
  175. 1750 [152]4," peekpeek(NULL) (NULL)ister : "head$
  176. 1760 [152]4," (NULL)age: ";page
  177. 1780 [141]2180
  178. 1810 count[178]1
  179. 1820 [132]1,a$,b$,c$,d$,e$,f$,g$,h$,i$
  180. 1830 [139] st [175] 64 [167]cl[178]1
  181. 184